import type { FeiyongxiangParams, LuruDataParams, PiciParams } from './types';
import { post } from '@/utils/request';

// 添加入库数据
export const addLuruData = (data: LuruDataParams) => post('/syapi/Statistics/addLuruData', { data });

export const getAllFeiyongxiangData = (params: FeiyongxiangParams = { keywords: '', type: 1, class: 'pici' }) =>
  post('/syapi/Statistics/getAllFeiyongxiangData', { params });

export const getAllPiciData = (params: PiciParams = { keywords: '', status: 1 }) =>
  post('/syapi/Pici/getAllPiciData', { params });

// 添加支出数据
export const addZhichuData = (data: ZhichuDataParams) => post('/syapi/Statistics/addZhichuData', { data });
export const addFeiyongxiangData = (data: ZhichuDataParams) => post('/syapi/Statistics/addFeiyongxiangData', { data });
